//公共方法函数
export const setItem = (name: string, data: any) => {
  sessionStorage.setItem(name, data);
};
export const getItem = (name: string) => {
  return JSON.parse(sessionStorage.getItem(name) as string);
};
